#ifndef GROUPSESSIONDETAILWIDGET_H
#define GROUPSESSIONDETAILWIDGET_H

#include <QWidget>
#include <QDialog>
#include <QScrollArea>
#include <QScrollBar>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QGridLayout>
#include "avataritem.h"
#include "debug.h"
#include "model/data.h"
#include "model/datacenter.h"


class GroupSessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    explicit GroupSessionDetailWidget(QWidget *parent);

    void addMember(AvatarItem* avatarItem);
    //从服务器加载数据, 显示到群聊会话窗口上
    void initData();

    //在加载数据完毕后, 将成员列表渲染到界面上, 渲染成员列表, 那么肯定是需要会话info的, 这里通过会话id获取
    void initMembers(const QString& chatSessionId);

private:
    QWidget* container;
    QLabel* groupNameLabel;

    int row = 0;
    int col = 0;
    int MAX_COL = 4;



signals:
};

#endif // GROUPSESSIONDETAILWIDGET_H
